package com.siegelion.section.login.viewmodels;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;

import com.siegelion.model.UserResponse;
import com.siegelion.repository.UserRepository;



public class UserViewModel extends BaseViewModel {

    public MutableLiveData<UserResponse> userRps;

    public UserViewModel(){
        this.userRps=new MutableLiveData<>();
    }

    public void login(String name,String pwd) {
        failed = UserRepository.getInstance().failed;
        userRps = UserRepository.getInstance().login(name ,pwd);
    }
}